< previous page page_989 next page >

Page 989
    Me.Caption = "RDBMS Tables Lister"
    '
End Sub
4. Save and run the project.
Day 19
Answers to Day 19 Quiz
1. The letters "ODBC" stand for Open Database Connectivity.
2. When you use the Microsoft Jet interface to connect to an ODBC data source, your Visual Basic program must first communicate with Microsoft Jet, which communicates to the ODBC front end. When you use the ODBC API, your Visual Basic program communicates directly with the ODBC front-end, skipping the Microsoft Jet layer entirely.
3. When you use the ODBC API to link to your data, you are actually creating a static, snapshot-type dataset. You must collect a set of data and bring it back to your workstation. You might also be limited by the amount of memory available on the workstation.
4. You use the ODBC Administrator to define or modify ODBC data sources. This program is part of the Windows Control Panel.
5. You can use the ODBC interface to connect to Excel spreadsheets and event text files, as long as an ODBC driver is installed on your system to handle the data format. There is no restriction to the type of data that you can access from an ODBC data source (as long as the driver exists for that format).
6. Before you can pass an SQL SELECT statement to a new ODBC data source, you must complete the following four preliminary steps:
e7ae6bd512ad4c3583017fcda52f57ae.gif
· Allocate an environment handle (SQLAllocEnv) to create a unique identifier for this ODBC session.
e7ae6bd512ad4c3583017fcda52f57ae.gif
· Allocate a connection handle (SQLAllocConnect) to create a unique identifier for this ODBC connection.
e7ae6bd512ad4c3583017fcda52f57ae.gif
· Connect to the ODBC data source (SQLConnect) using the data source name, user login, and password.
e7ae6bd512ad4c3583017fcda52f57ae.gif
· Allocate a statement handle (SQLAllocStmt) to create a unique identifier for passing data and SQL statements back and forth.

 
< previous page page_989 next page >

If you like this book, buy it!